package com.will.repo.controller;

import com.will.common.dto.ProductDto;
import com.will.common.response.AjaxResult;
import com.will.repo.service.IRepoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/repo")
public class RepoController {

    @Autowired
    private IRepoService repoService;

    @PutMapping("/decreaseRepo")
    public AjaxResult decreaseRepo(@RequestBody ProductDto productDto) {
        return repoService.decreaseRepo(productDto);
    }
}
